package com.adream.scalpel.security.server.system;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

import java.io.IOException;

public class HTTPResponseWrapper extends HttpServletResponseWrapper {
    private String redirect;

    public HTTPResponseWrapper(HttpServletResponse httpServletResponse) {
        super(httpServletResponse);
    }

    public String getRedirect() {
        return redirect;
    }

    @Override
    public void sendRedirect(String string) throws IOException {
        this.redirect = string;
    }
}
